public class Test1 {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = s1;
        s1 = null;
        System.out.println(s2);
        System.out.println(s1);
    }
}
